<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>Title</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="${pageContext.request.contextPath}/webjars/jquery/3.7.1/jquery.min.js"></script>
    <script src="${pageContext.request.contextPath}/webjars/bootstrap/5.1.3/js/bootstrap.bundle.min.js"></script>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/webjars/bootstrap/5.1.3/css/bootstrap.min.css"/>
</head>
<body>
<%request.setCharacterEncoding("UTF-8"); %>
<%--<jsp:useBean id="book" class="com.cn.domain.Book" scope="page">--%>
<%--    <jsp:setProperty name="book" property="*" />--%>
<%--</jsp:useBean>>--%>
<%
    String bookName = request.getParameter("bookName");
    double price = Double.parseDouble(request.getParameter("price"));
    String author = request.getParameter("author");
%>

<div class="container mt-3">
    <form action="info1.jsp" method="post">
        <table  class="table table-bordered text-center" style="width: 400px; height: 200px; margin: 0 auto;">
            <tr>
                <td colspan="2"><b>添加图书信息</b></td>
            </tr>
            <tr>
<%--                <td>名称：<jsp:getProperty name="book" property="bookName"/></td>--%>
                <td>名称：${bookName}</td>

            </tr>
            <tr>
<%--                <td>价格：<jsp:getProperty name="book" property="price"/></td>--%>
                <td>价格：${price}</td>

            </tr>
            <tr>
<%--                <td>作者：<jsp:getProperty name="book" property="author"/></td>--%>
                <td>作者：${author}</td>

            </tr>

        </table>
    </form>
</div>
</body>
</html>